package com.kangyi.user.config;

import com.kangyi.user.sms.SmsServer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.RedisTemplate;


/**
 * @author Blank
 * @version 1.0
 */
@Configuration
public class SmsConfig {

    @Bean
    public SmsServer smsServer(RedisTemplate<String, String> redisTemplate) {
        return new SmsServer(redisTemplate);
    }
}
